package com.app.service;


import com.app.model.CusEducationModel;
import com.app.model.LookMeModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @Description: 关注，收藏，谁看过我
 * @Author: N
 * @Date: 2022年11月24日10点26分
 */
public interface LookMeService {
    /**
     * 根据条件查询对象
     * @param pid
     * @param rid
     * @param eid
     * @param cid
     * @param userType
     * @param lookMeType
     * @return
     */

    LookMeModel findRidAndPid(int pid, int rid, int eid, int cid, int userType, int lookMeType);//查询存不存在

    Page<LookMeModel> findLookMeList(int userType, int lookMeType, int cid, int eid, int page, int limit);//查询谁看过我 关注列表
    int findLookMeCount(int userType,int lookMeType,int cid,int eid);//查询谁看过我 关注列表

    int insert(LookMeModel model);
    void delete(LookMeModel model);


    int selectAllCount(int eid,  int cid, int userType, int lookMeType);

    int getCountByPid(int pid);//查询岗位被查询多少次



}
